<%--
  Created by IntelliJ IDEA.
  User: 19861
  Date: 2020/9/11
  Time: 14:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fnt" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div id="header">
    <div id="header_in">
        <a class="logo" href="#"><img src="<%=path%>/web/images/log.jpg"></a>
        <div class="search">
            <input type="text" placeholder="知识讲堂内容" id="select" value="${empty param.content ? "" : param.content}"/>&nbsp;&nbsp;
            <a href="#" class="btn" id="goSelect">搜索</a>
        </div>
    </div>
    <div id="nav">
        <div class="menu-%e6%a0%8f%e7%9b%ae-container">
            <ul id="menu-%e6%a0%8f%e7%9b%ae" class="menu_nav">
                <li id="menu-item-86" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-86"><a href="<%=path%>/services/index">首页</a></li>
                <li id="menu-item-96" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-96"><a href="<%=path%>/services/list">疾控讲堂</a></li>
                <li id="menu-item-322" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-322"><a href="#">刷题练习</a>
                    <ul class="sub-menu">
                        <li id="1" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-289"><a href="#">顺序练习</a></li>
                        <li id="2" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-288"><a href="#">随机练习</a></li>
                        <li id="3" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-288"><a href="#">专项练习</a></li>
                    </ul>
                </li>
                <li id="menu-item-99" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-99"><a href="#">模拟测试</a>
                    <ul class="sub-menu">
                        <li id="4" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-289"><a href="#">随机测试</a></li>
                        <li id="5" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-288"><a href="">专项测试</a></li>
                    </ul>
                </li>
                <li id="menu-item-275" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-275"><a href="#">难题攻克</a></li>
                <li id="menu-item-107" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-107"><a href="#">正式考试</a></li>
                    <li id="menu-item-314" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-314">
                        <c:if test="${empty sessionScope.loginUser}">
                        <a href="<%=path%>/services/login">注册登录</a>
                        </c:if>
                        <c:if test="${!empty sessionScope.loginUser}">
                            <a href="#">${sessionScope.loginUser.email}</a>
                            <ul class="sub-menu">
                                <li id="userhome" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-289"><a href="<%=path%>/services/user_info">个人中心</a></li>
                                <li id="out" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-288"><a href="<%=path%>/services/out">退出</a></li>
                            </ul>
                        </c:if>
                    </li>
            </ul>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#goSelect").click(select);
    })
    function select() {
        var content=$("#select").val();
        location.href="/services/list?content="+content;
    }
</script>
</body>
</html>
